﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="coursewareInfo.aspx.cs" Inherits="teacher_coursewareInfo" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>我的课件</title>
    <link href="../../css/body.css" rel="stylesheet" type="text/css" />
    <link href="../../css/table.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
        .main
        {
            margin-left:0px;
            margin-top:30px;
            width: 630px;
            height: 100%;
            background-color: #FFFFFF;
            border: 0;
        }
        .top
        {
            margin-left: 10px;
            margin-top: 20px;
            width: 630px;
            float:left;
            clear:both;
            background-color: #ffffff;
        }
        .rigth
        {
            margin-left: 10px;
            margin-top: 30px;
            width: 620px;
            background-color: #ffffff;
            float: left;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div class="main">
        <div class="top"> 
            所属课程：<asp:DropDownList ID="ddl_courseId" runat="server" Height="20px" Width="75px">
            </asp:DropDownList>
            课程类型：<asp:DropDownList ID="ddl_courseType" runat="server" Height="20px" Width="75px">
            </asp:DropDownList>
            课件名称：<asp:TextBox Id="tb_name" runat="server" 
                Width="70px"></asp:TextBox>
                日期：<asp:DropDownList ID="ddl_time" runat="server" Width="75px">
                <asp:ListItem Selected="True" Value="all">全部</asp:ListItem>
                <asp:ListItem Value="1">最近一个月内</asp:ListItem>
                <asp:ListItem Value="3">最近三个月内</asp:ListItem>
                <asp:ListItem Value="6">最近半年内</asp:ListItem>
                <asp:ListItem Value="12">最近一年内</asp:ListItem>
            </asp:DropDownList>
            <asp:Button ID="btn_search" runat="server" Text="搜索" onclick="btn_search_Click" />
            <hr />
        </div>
    <div class="rigth">
        <table width="800px" class="tab"  align="center">
        <tr>
        <th width="100">课件编号</th>
        <th width="100">课件名称</th>
        <th width="400">所属课程（编号）</th>
        <th width="200">类型</th>
        <th width="200">教师</th>
        <th width="100">下载时间</th>
        </tr>
        <asp:Repeater ID="coursewareList" runat="server">
                <ItemTemplate>
                    <tr style='background-color: <%#(Container.ItemIndex%2==0)?"#eeeeee":"#ffffff"%>'
                        onmouseover="this.style.background='#ddeeff'" onmouseout="this.style.background='<%#(Container.ItemIndex%2==0)?"#eeeeee":"#ffffff"%>'">
                        <td><a href="../Courseware.aspx?id=<%# DataBinder.Eval(Container.DataItem, "coursewareid")%>" target="_blank"><%# DataBinder.Eval(Container.DataItem, "coursewareid")%></a></td>
                        <td><%# DataBinder.Eval(Container.DataItem, "coursewareName")%></td>
                        <td><%# DataBinder.Eval(Container.DataItem, "courseName")%>(<a href="../Course.aspx?id=<%# DataBinder.Eval(Container.DataItem, "CourseID")%>" target="_blank"><%# DataBinder.Eval(Container.DataItem, "CourseID")%></a>)</td>
                        <td><%# DataBinder.Eval(Container.DataItem, "typeName")%></td>
                        <td><%# DataBinder.Eval(Container.DataItem, "teacherName")%></td>
                        <td><%# DataBinder.Eval(Container.DataItem, "time")%></td>
                    </tr>
                </ItemTemplate>
            </asp:Repeater>
    </table>
        <br />
        <br />
        <div align="center">
            [页次:<asp:Label ID="nowPage" runat="server" Font-Bold="True"></asp:Label>/<asp:Label
                ID="allPages" runat="server" Font-Bold="True" ForeColor="#C00000"></asp:Label>]
            [共<asp:Label ID="allMsg" runat="server" Font-Bold="True"></asp:Label>条
            <asp:Label ID="onePage" runat="server" Font-Bold="True"></asp:Label>条/页] [<asp:HyperLink
                ID="firstPage" runat="server">首页</asp:HyperLink>] [<asp:HyperLink ID="prePage" runat="server">上一页</asp:HyperLink>]
            [<asp:HyperLink ID="nextPage" runat="server">下一页</asp:HyperLink>] [<asp:HyperLink
                ID="endPage" runat="server">尾页</asp:HyperLink>]
        </div>
    </div>
    </div>
    </form>
</body>
</html>

